package com.cyc.config;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
/*
 * @Author 徐柯
 * @Description 支付配置类
 * @Date 0:59 2021/3/30
 * @Param 
 * @return 
 **/
@Component
public class AlipayConfig {
    // 应用ID,您的APPID，收款账号既是您的APPID对应支付宝账号
    @Value("")
    public  String app_id;
    // 商户私钥，您的PKCS8格式RSA2私钥
    @Value("MIIEvgIBADANBgkqh9w0BAQEFAASCBKgwggSkAgEAAoIBAQCgGwcJnYyy0EuqNXzkaXWU/bEltTiAg+c8EIHubmu9eLzoRQ5vN4wKyUe0e8UWZQAmk1ijhdQidSGKGcNHmVDup5mtp4I+hTGm9zKxQbdP6PLwpbyMX8P2vgzhVwdYJua9GIsdR5oH0ZMCuAAZhih+W94gVUHHF5UUxzvowAe8WIUml4C74e7LZGQXbYY9/eGY1twwtn41p/OGNAg2dHRAjqn25RcoxYPr5bNG6MBCqYwfFThqgDXcNtMWnTvojRAcYKmHPNDSLxfc2/UWY0f0dxsBO5xv9N0jPO2Fdp5UaOtS8HbJhkQE1UZbsRsQPrkY1KFFG/bAOm+6YJru0MLjAgMBAAECggEBAJ3zbBL5Yog6ZJtsH2V8AStWyMBJs49eEe843eZq+1G2Xq/LCP2B0GAHyPzuqjZ4uBhWfzj725eO9OK4neXyBF0d7cfbHOwvHRf6ggFLstxcFeiBqazXAY5YWn6pDC7UWgitwPjG3dfe0uj4u+hyaVqXqWE+myEeS85u69SoNjmBjyQ2bZ80p1xgAq8lFPGAC9MtRu4jsS9nCECMeaAeEnp8knn80tGVq9IkPfoErFgBxgAz72v1faq0w7KOWoZs/zpDYAIlisfOhL7//nKpkiy2WJoMmboFOCZOPUWTeSeRl1Y2Nfh1MZQeY0sjeNWSMK7kKxvHVPJ6rtmxSGde1XECgYEA086TtZmexKEs3A89DdDWyC2ScukhNNx+UH3ZaG76piKursz57n6gQX1GFEvcx6htS4YAyAekeK4qqiXvWnkq96R9kCPsrjDusXPmObgHFajIfA6gv00bK1AV6UfARR5WR57vyzg9rM4Zzaks3xQ4yUCo8wGHTeFVzcrnf/mixqkCgYEAwYLhvyFRpGvsSAGyXFftD1tqwyd2HsSH6tXgLjoaltgZzzYZyE8jlD5bdEXPnYgk4CQoH4CcNvDhOchR7/CE++E+ESyGCC7jiELwJLAmpzGxqhudzHXXWplzDFGyYNE0xUGrqNQwreNz6AAHN8eCMDCG5i8TqDHBKYnC8PX/kKsCgYEAnzpJKNhX1xIjmzuJdn1tOgeodOJ1qDuqafByJGRp4cNo9tf5fCWNbC41JMTzMNWZdJFEvRuhtWeZg1gJXEaC2rC6BEY9g6YdiyHKDdIe4VWFgl2s0qOwrRsDnd/m1w87ZZRCSM/67ZHzK/zmUr3tAr6tRCH+CbpAuviymC6fBCECgYBoH8TY01Ta5Dd/h2oxxh4I5WfNGq60X4vDENJQDXPBNwasOLAm2G6MlgEfz3Cnk1pEQTBVwx5LcdG/BcsREJp97fU3yH1WaeSErYAKPb6OuG6g2btPCRmX5nnBZzRUZD3A5lU3wvVum7UCYQGBQhkLVRFBSpOJLTyC3V3HypZ5gQKBgFxXkkI9lc85QOlhrKwPcUkhyeN1HTguimihNbXA0ZF9OhE41H29oGhAiOzNqtSgts+PhGXKWY9UK/I8jtCNaQGcgzE0hD3mLHxsUx3k0Cjv6cePZxcMQFVdir7jcDYsPXfVw12CPhZWB0AdBRnIJikHyLfXSPabcwy1LotRc3qF")
    public String merchant_private_key;
    // 支付宝公钥,查看地址：https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
    @Value("MIIBIjANBgkqh0BAQEFAAOCAQ8AMIIBCgKCAQEAkf3h0PjtnzEsFwfv70xJwkomxQT9OV5t1ZhGBW0yf7WyO/s+gX8DZ30T0Kkl4nPdyuw5FcmKJmmyUa3EKwNnwNxugQOqzKbkZawkhBxikFFK35RvQHsc37mkKCf3RgvQB5uLbde4kMZ7Wdh0ZXZIv/tFrt5Fd7pEXqmd3Pz1ZL13xwOXXJgTEjf+pc06o8+8Sj1Ztsx62nl8jd1hFOIQPusLBdKWB+QqgIqYrywDtJDjA+O1pfUEPNz8dlnedqxRJiZ1NcrjbGgzcaVtSkIIQCT9vniW/J/UOFrsaBn+Qw9eMRoPDOBQFsqMMT+2umAKhn846MqkE9bNjSGn8sBHSQIDAQAB")
    public String alipay_public_key;
    // 服务器异步通知页面路径  需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    @Value("http://../alipay/notify")
    public  String notify_url;
    // 页面跳转同步通知页面路径 需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    @Value("http://.wicp.vip/alipay/notify")
    public  String return_url;
    // 签名方式
    @Value("RSA2")
    public  String sign_type;
    // 字符编码格式
    @Value("utf-8")
    public  String charset;
    // 支付宝网关
    @Value("https://openapi.alipay.com/gateway.do")
    public String gatewayUrl;
    // 日志存放
    @Value("C:\\Users\\cyc\\Desktop\\easybuyssm\\web\\tem")
    public String log_path;
    public String getApp_id() {
        return app_id;
    }
    public void setApp_id(String app_id) {
        this.app_id = app_id;
    }
    public String getMerchant_private_key() {
        return merchant_private_key;
    }
    public void setMerchant_private_key(String merchant_private_key) {
        this.merchant_private_key = merchant_private_key;
    }
    public String getAlipay_public_key() {
        return alipay_public_key;
    }
    public void setAlipay_public_key(String alipay_public_key) {
        this.alipay_public_key = alipay_public_key;
    }
    public String getNotify_url() {
        return notify_url;
    }
    public void setNotify_url(String notify_url) {
        this.notify_url = notify_url;
    }
    public String getReturn_url() {
        return return_url;
    }
    public void setReturn_url(String return_url) {
        this.return_url = return_url;
    }
    public String getSign_type() {
        return sign_type;
    }
    public void setSign_type(String sign_type) {
        this.sign_type = sign_type;
    }
    public String getCharset() {
        return charset;
    }
    public void setCharset(String charset) {
        this.charset = charset;
    }
    public String getGatewayUrl() {
        return gatewayUrl;
    }
    public void setGatewayUrl(String gatewayUrl) {
        this.gatewayUrl = gatewayUrl;
    }
    public String getLog_path() {
        return log_path;
    }
    public void setLog_path(String log_path) {
        this.log_path = log_path;
    }
    @Override
    public String toString() {
        return "AlipayConfig{" +
                "app_id='" + app_id + '\'' +
                ", merchant_private_key='" + merchant_private_key + '\'' +
                ", alipay_public_key='" + alipay_public_key + '\'' +
                ", notify_url='" + notify_url + '\'' +
                ", return_url='" + return_url + '\'' +
                ", sign_type='" + sign_type + '\'' +
                ", charset='" + charset + '\'' +
                ", gatewayUrl='" + gatewayUrl + '\'' +
                ", log_path='" + log_path + '\'' +
                '}';
    }
}